package it.zqdszb.library.view;

import android.content.Context;
import android.graphics.Rect;
import android.util.AttributeSet;
import android.widget.TextView;

/**
 * Created by GH on 2018-05-15.
 */

public class Marquee extends TextView
{

	public Marquee(Context context, AttributeSet attrs)
	{
		super(context, attrs);
	}

	@Override
	protected void onFocusChanged(boolean focused, int direction, Rect previouslyFocusedRect)
	{
		if(focused) super.onFocusChanged(focused, direction, previouslyFocusedRect);
	}

	@Override
	public void onWindowFocusChanged(boolean hasWindowFocus)
	{
		if(hasWindowFocus) super.onWindowFocusChanged(hasWindowFocus);
	}

	@Override
	public boolean isFocused()
	{
		return true;
	}

}